home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 22
/
freelog 22.iso
/
Prog
/
Djgpp
/
GPC2952B.ZIP
/
doc
/
gpc
/
docdemos
/
staticdemo.pas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
2001-02-09
|
209 b
|
17 lines
program StaticDemo;
procedure Foo;
{ x keeps its value between two calls to this procedure }
var
x : static Integer = 0;
begin
WriteLn (x);
Inc (x)
end;
begin
Foo;
Foo;
Foo;
end.